package com.hbnu.tangyalu.thread;

public class Product implements Runnable{
    private Box box;
    public Product(Box box){
        this.box=box;
    }

    @Override
    public void run() {
        while (true){
            box.add();
        }
    }
}
